package com.ciwong.epaper.modules.scan.util;


import android.content.Context;

import com.ciwong.epaper.modules.me.bean.ServiceDetail;
import com.ciwong.epaper.util.SerializableManager;
import com.ciwong.mobilelib.i.BaseCallBack;

import java.io.Serializable;
import java.util.List;

/**
 * Created by young on 2016/9/19.
 * 扫一扫工具类 公共方法类
 */
public class ScanServerManager {
    private static  ScanServerManager instance;


    private ScanServerManager(){}

    public static ScanServerManager getInstance(){
        if(instance==null){
            syncinit();
        }
        return instance;
    }
    private static synchronized void syncinit(){
        if (instance==null){
            instance=new ScanServerManager();
        }
    }
    //扫一扫获取服务列表 与本地开通服务详情列表比对,找出对应的服务
    public static ServiceDetail CompareServer(){

        SerializableManager.getInstance().deSerialize(
                SerializableManager.SerializeKey.SHARE_KEY_SERVICE_DETAIL_LIST,
                new BaseCallBack() {

                    @Override
                    public void success(Object data) {
                        List<ServiceDetail> localDetailList = (List<ServiceDetail>) data;

                    }

                    @Override
                    public void failed(int errorCode, Object data) {

                    }

                    @Override
                    public void failed(Object data) {

                    }
                });
        return null;
    }






}
